<?php
class Pageley_Test_SuiteResult extends Pageley_Test_AbstractResult {
	public function __construct($name) {
		parent::__construct($name);
	}
	
	public function getTestCount() {
		$count = 0;
		foreach($this->getTestResults() as $testResult) {
			$count += $testResult->getTestCount();
		}
		return $count;
	}
	
	public function countResults($type) {
		$count = 0;
		foreach($this->getTestResults() as $testResult) {
			$count += $testResult->countResults($type);
		}
		return $count;
	}
	
	protected function getTestLevel() {
		return "Test suite";
	}
}